package be.idamf.flash.net
{
	import flash.events.Event;
	
	public class NetEvent extends Event
	{
		public static const BW_DONE:String = "bwdone";
		public static const CUE_POINT:String = "cuePoint";
		public static const METADATA:String = "metaData";
		public static const IMAGE_DATA:String = "imageData";
		public static const PLAY_STATUS:String = "playStatus";
		public static const TEXT_DATA:String = "textData";
		
		////////////////////////////////////////////////////////////////////////
		
		public var data:Object;
		
		////////////////////////////////////////////////////////////////////////
		
		/**
		 * NetStream Event translation
		 */
		public function NetEvent(type:String, data:Object = null, bubbles:Boolean = false, cancelable:Boolean = false)
		{
			super(type, bubbles, cancelable);
			this.data = data;
		}
		
		////////////////////////////////////////////////////////////////////////
		
		/**
		 * @inherit
		 */
		override public function clone():Event
		{
			return new NetEvent(type, data, bubbles, cancelable);
		}
	}
}